import React from 'react';
import { Route, IndexRoute } from 'react-router';

import App from './App';
import HomePage from '../../pages/home/page';
import LoginPage from '../../pages/login/page';
import ThreadPage from '../../pages/thread/page';
import ThreadList from '../../components/searchlist';


export default (
  <Route path="/" component={App}>
      <IndexRoute component={HomePage} />
      <Route path='login' component={LoginPage}></Route>
      <Route path="thread/:id" component={ThreadPage}></Route>
      <Route path="search" component={ThreadList}></Route>
  </Route>
);
